package com.hfzy.ihk.common.support.againtask;

/**
 * Created by YANFA on 2018/7/31.
 */
public class Demo {

    public void DemoUse(){
        DelayWorker delayWorker = new DelayWorker(5,5000,()->{
            System.out.println("又打印一次---------------");
            throw new Exception();
        });
        DelayQueueManager.getInstance().put(delayWorker);
    }
}
